import request from '@/utils/request';

//生命线易损性基础库
// 分页查询
export function getAllList(query) {
	return request({
		url: '/lifelineFoundationLibrary/page',
		method: 'get',
		params: query
	})
}
// 获取权限
export function getRole() {
	return request({
		url: '/lifelineFoundationLibrary/getRole',
		method: 'get',
	})
}
// 删除
export function removeById(query) {
	return request({
		url: '/lifelineFoundationLibrary/deleteByTypeAndIds',
		method: 'get',
		params: query
	})
}

// 修改
export function updateById(data) {
	return request({
		url: '/lifelineFoundationLibrary/updateById',
		method: 'post',
		data
	})
}
